package com.example.hy2110szyx.entity;

import lombok.*;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Customer {
    private Integer id;
    private String cno;
    private String identity;
    private String name;
    private Integer gender;//0-女 1-男
    private String phone;
    private String email;
    private String address;
    private String ctno;
    private String tno;
    private CustomerType customerType;
    private List<ReservedTicket> reservedTickets;

    public Customer(String cno, String identity, String name) {
        this.cno = cno;
        this.identity = identity;
        this.name = name;
    }

    public Customer(String identity, Integer gender,String name) {
        this.identity = identity;
        this.gender = gender;
        this.name = name;
    }
}
